#pragma once

class CSessionGroup
{
public:
	CSessionGroup(void);
	~CSessionGroup(void);

	static int s_generateSessionID;

private:
	int		m_groupID;

	typedef std::map<int,class CSession*> MAP_SESSIONS;
	MAP_SESSIONS	m_mapSessions;

	int		m_finished_sessions;

public:
	void	Initialize( int id, int count );
	void	DoWork();
	void	Close();

	int		GetGroupID(){ return m_groupID; }
	void	JobFinished( int sessionID );
};

